package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;

import com.aijk.ehm.model.EhmPeopleCrowd;
import com.aijk.ehm.model.qo.EhmPeopleCrowdQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmPeopleCrowdApi {
    Long save(EhmPeopleCrowd bean) throws ErrorCodeException;

    void update(EhmPeopleCrowd bean) throws ErrorCodeException;

    EhmPeopleCrowd findOne(Long id) throws ErrorCodeException;

    List<EhmPeopleCrowd> list(EhmPeopleCrowdQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmPeopleCrowdQo qo);

    PageInfo<EhmPeopleCrowd> page(EhmPeopleCrowdQo qo);
}